package com.huluobo.a2109mouthdemo.addGroup;

import com.hyphenate.chat.EMClient;
import com.hyphenate.chat.EMGroupInfo;
import com.hyphenate.chat.EMGroupOptions;

import java.util.List;

/**
 * Created by LC on 2023/12/4.
 */
public interface AddGroupContract {
    interface Presenter {
        void createGroup(String groupName, String desc, String[] allMembers, String reason, EMGroupOptions option);

        void findGroup(int pageSize, String cursor);

        void joinGroup(String groupId);
    }

    interface View {
        void onCreateGroupSuccess();

        void onCreateGroupFailed(String error);

        void findGroupSuccess(List<EMGroupInfo> list);

        void findGroupFailed(String error);

        void onJoinGroupSuccess();

        void onJoinGroupFailed(String error,int code);
    }
}
